<?php
namespace Home\Model;
use Think\Model\ViewModel;

class BrandMoneyModel extends ViewModel
{
    public $viewFields = array(
        'agent_brand' => array(
            'agent_id','brand_id','user_money',
            '_type' => 'LEFT'
        ),
        'brand'=>array(
            'b_name','id',
             '_on'=>'brand.id = agent_brand.brand_id',
            '_type'=>'RIGHT'
        ),
    );
}